package com.example.helloword.excel.test1;

/**
 * use:
 * 可用注解定义标签名和列名，写了个方法，可以将某个类的List转换为对应的Excel文档，列名如果在不使用注解的情况下默认为属性名：
 */
@Excel(name = "学生标签页")
public class Student {
    @Excel(name = "姓名")
    private  String name;

    private boolean male;

    @Excel(name = "身高")
    private int height;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isMale() {
        return male;
    }

    public void setMale(boolean male) {
        this.male = male;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }
}
